/*
 * StorageFactory.java
 *
 * Created on June 27, 2007, 2:50 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app;

import java.util.Set;
import org.atomojo.app.db.DB;
import org.restlet.Context;
import org.restlet.data.Protocol;

/**
 *
 * @author alex
 */
public interface StorageFactory
{
   void init(Context context)
      throws Exception;

   Storage getStorage(DB db)
      throws Exception;
   
   Set<Protocol> getStorageProtocols();
}
